﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Taurus.Parking.CarPropertyBind;

namespace Taurus.Parking.DTO
{
    class Car
    {
        /// <summary>
        /// UI显示使用
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 汽车ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        /// 车名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public string Price { get; set; }

        /// <summary>
        /// 车图片名称
        /// </summary>
        public string Pic
        {
            get {
                return PicFullPath.Substring(PicFullPath.LastIndexOf('/') + 1);
            }
        }
        /// <summary>
        /// 图片URL全路径
        /// </summary>
        public string PicFullPath { get; set; }
        /// <summary>
        /// 停车位
        /// </summary>
        public Park Park { get; set; }
    }
}
